"""
@-*- coding: utf-8 -*-
@ python：python 3.8
@ 创建人员:ylx-lingxiao
@ 创建时间:2024/12/7  15:28
@ File:learn_1.py
@ Explanation:算法学习中的一些Python基础知识的练习
"""
# a = (1,2,3),(1,2,3)
# for m in zip(a):
#     print(m)

# a = (1,2,3),(1,2,3)
# for aa,bb,cc in a:
#     print(aa,bb,cc)

# a_1 = (1,2,3)
# a_2 = (4,5,6)
# b = zip(a_1,a_2)
# print(b)
#
# for aa,bb in b:
#     print(aa,bb,type(aa))
#
#
# a_1 = (1,2,3),(4,5,6)
# b = zip(a_1)
# print(b)
#
# for aa in b:
#     print(aa,type(aa))
#
#
# a_1 = (1,2,3),(4,5,6)
# b = zip(*a_1)
# print(b)
#
# for aa,bb in b:
#     print(aa,bb,type(aa))
#
# print('-----------')
#
# for mmm in b:
#     print(mmm,type(mmm))
#
# mm = ((1,2),(3,4),(5,6))
# for aa,bb in mm:
#     print(aa,bb)
#
# for cc in mm:
#     print(cc)


# s = 'heheheikikikl'
#
# a = ['he','ik']
# for ii in a:
#     if ii in s:
#         m_1 = int(s.count(ii))
#         n_1 = s.replace(ii, '')
#         s = n_1
# print(s)

# a_1 = {'IV': 4, 'IX': 9, 'XL': 40, 'XC': 90, 'CD': 400, 'CM': 900}
# bb = a_1['IV']
# print(bb,type(bb))
# print(6*7)

nums1 = [1,2,3,0,0,0]
m = 3
nums2 = [2,5,6]
n = 3

if m == 0:
    nums1 = nums2[0:1]
elif n == 0:
    nums1 = nums1
elif m != 0 and n != 0:
    nums1 = nums1[0:m]
    for i in range(n):
        nums1.append(nums2[i])
    nums1.sort()

print(nums1)